package cn.kgc.trade.config;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2016092700610740";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCCTUYspcEsZexo+daC8Nt+gUe46KDpkFZITXhyYaviOwRqDAHPpJV8iB16v9IrBdFfqMc5Fgt81E2WHbIaCWuv/pgZC+3KSuzVW+68ngKPHCZ7uZZlzVzgUUJlzPaDEKARJub1EHBY5um8WMCGY8pmhDWc5Wm6GKGQVpcKSJLJW17tG2HdRgvXQrx1USAT1d4e7/U8PrvHxbQ6793nJ3QFhEk+DLOxMYg7hbKRN8W2LGcmtFEoxNYNG56sq3eL+ghIt9ZOw3w+091Br516iNAtb+bPzHcC1T+oPzQx/P/9xuuQhfwASoArYJqlUpBtLLBuCyqI6wTBtjNMJZjRKJOVAgMBAAECggEAMtWy6vg/xPJ+qPXPmoYdG92T/a/EF1sYTlzrALTaOgiMUFMe4cN0DoGL/reXZvF+HbPbBYp0MN8i5c3wDfhe6uqIrDzbKHDStOqI2U1L8kkpOlvNMSpNcbZCETVFdxylVgu3TyR6sDRmO/TkJ4oHDLfHss5N0SyK26TsiDaIDcXomgT9hBfJ82wTHM2+5amnsuY1kupr6IIJvDxTY6uU+W0UDJuV7ZxMMl0SGx29UQ0dNn3nnHDIA85ni2In4liyFnwl1hwtRO/lgJYLdlqq1QQ2KhAe276SWhBc1n4a5ZwaEygd04Y5/hRLIoKlEV8ZSV1zjeusRa8put7pt/0+gQKBgQDKtrvycwhjO5p9ZRZIqJQuvACNRIFCmJEUZr8956Smm4ej63F11jlg2+ef7X+GbubHgd9ppaeMqdErBZikNkISxupjxDtoy10jPMB1tDvgIYuGFxSYOzwq3JWi4KiI/yEetXbQmq1OohTGMGeR9E1FWYRjYc//+cirW/Z0wH/+JwKBgQCkjbS/GpF2g2gZztwLxTQYMSJD1NEHkrXiK0c3jC1UQKJ6c8WCVDf5uta9K7s04KOttJSF2LzNL81hxbwf3ZAGVhXlD8xJlmpyZ6mCAN9ZTRpp3shxFXskkaSIRyC0y3lEiF+9iw9w7rhaeegI2E9zpXCzfpUmP82oMr2sU41x4wKBgCfRVv+bmtUrGwBwf70L5/d6FD2rbBxxrWWtfPki7BORz0XidGnqB2FAMLIYS4lTdV9Q4lp1IIEfxidGNSJkSfw4OEgafnTqJURLpZ45Jd2zmR1goTn5wKrGo1nX+SLXwmCu0kTNbSdZ7Oy1C1L/AsKRf9CpoNqt7L3EFZf/S+TXAoGAD//HJx2KLx+vq3K1al+OJRwB3N6ARGA7VvYmQnxam+p84bMH7RgLKTjFUDdESGve/jCkkC72jGytZ2g2VlLQgg00q8TRdAYv61ew33b+QEyC2PBURMp14qRWfvmLcIioDcXEqUUwBybuvb1EljeR4gif4JPaJJHniQcF8g9dnUkCgYEAkAKLRzIFEtRdg9imt3kVOA/B0eWQOPYSSAcfL2ubT8hOUGdV49LUvKzDrzpa99ZfvhYNM0seq4Gm2gYm6Vw3mJQVC4K+5JOFr9W6yeK7v3TVSzsYZc5xYEIGEoBah7cj4HFGJIocHmcFT6EqJ8e7MZd42AReIx3iE7L1uey70qo=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn57bbi9uAQ9iRS65E4d31pbmZS2hy4LI6lyC0rgJUySnexVVRSvgR6rPHXDJ/RswpTGP/vRsVcsNYftpmdmxFNOK0jD2Ut7h08wxsn+trZ1/gGXuZ/GA5+PvkEjzWXp0Vt6oPRKype8Psh7KU466+AbtNRWC1m3Ngc6a4z6W0aGi/MVBxRF6Sn4fh6kdzeYVSfCCc/26JRv5ngFmPjnB9K1hfwlpFr624cDrVT/l4FO/0TXoIXIpGGjCrpy14x9IxpY8mJgsCEcoz2c+6l54vjFxfGOJUxBtH+87fYpCHumw4tq32MandzE6aZ+fzseARDUXQuAWAW0Bdtxzh/2hMQIDAQAB";

     // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://5jn45v.natappfree.cc/trade/api/notifyUrl";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://5jn45v.natappfree.cc/trade/api/returnUrl";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

}


